home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / prgs / ExternFunc / func.b next >
Text File  |  1996-09-10  |  299b  |  19 lines

  1. {*
  2. ** A test of external function use.
  3. ** sub.c (compiled and assembled to produce sub.o)
  4. ** is used in conjunction with this:
  5. **
  6. ** bas -O func sub.o
  7. *}
  8.   
  9. deflng x,y,z
  10.  
  11. declare function subtract(x&,y&,z&) external
  12.  
  13. input "enter x: ",x
  14. input "enter y: ",y
  15. z=0
  16.  
  17. subtract(x,y,@z)
  18. print x;"-";y;"=";z
  19.